package models

type Tabbar struct {
	Id           int         `gorm:"primary_key"`
	Name         string      `gorm:"type:varchar(255);default:null" description:"导航名称"`
	Address      string      `gorm:"type:text;default:null" description:"导航地址"`
	Status       int         `gorm:"type:int(10);default:1" description:"状态 1：未上架，2：已上架"`
	TabbarTypeId int         `gorm:"index" description:"导航分类id"`
	TabbarType   *TabbarType `gorm:"ForeignKey:TabbarTypeId"`
	CreateTime   string      `gorm:"type:varchar(255);default:null" description:"创建时间"`
}

type TabbarType struct {
	Id   int    `gorm:"primary_key"`
	Name string `gorm:"type:varchar(255);default:null" description:"导航分类名称"`
}
